<div class="contentArea">
    <div class="Item hr">
        <div class="fr"><a href="{:U('Nodes/index')}" class="btn">节点列表</a></div>
        <div class="current">添加节点</div>
    </div>
    <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <th width="80">节点名称：</th>
                <td><input name="model[title]" type="text" class="input" size="30" /></td>
            </tr>
            <tr>
                <th width="80">节点标识：</th>
                <td><input name="model[name]" type="text" class="input" size="30" /></td>
            </tr>
            <tr>
                <th width="80">父节点：</th>
                <td>
                    <select name="model[pid]">
                    	<volist name='nodes' id='node'>
                        <option value="{$node.id}" <if condition="$node['level'] eq 3">disabled="true"</if>>{$node.fullname}[{$node.name}]</option>
                        </volist>
                    </select>
                </td>
            </tr>
            <tr>
                <th width="80">状态：</th>
                <td>
                    <select name="model[status]">
                        <option value="1" selected>启用</option>
                        <option value="0">禁用</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th width="80">自动添加：</th>
                <td>
                <input type="checkbox" value="1" name="auto" /> 自动添加增,创建,改,更新,删及首页操作(默认：增[add],创建[create],改[edit],更新[update],删[delete],首页[index])
                </td>
            </tr>
        </table>
    </form>
    <div class="commonBtnArea" >
        <button class="btn submit">提交</button>
    </div>
</div>

<script type="text/javascript">
$(".submit").click(function(){
    commonAjaxSubmit("{:U('Nodes/create')}");
    return false;
});
</script>
